package com.hyz.asset.service.impl;

import com.hyz.asset.mapper.AssetMapper;
import com.hyz.asset.pojo.Asset;
import com.hyz.asset.service.AssetService;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author HGD
 * @date 2022/9/24 21:46
 */
@Service
public class AssetServiceImpl implements AssetService {
    @Autowired
    private AssetMapper assetMapper;

    @Override
    public boolean batchInsertAsset(List<Asset> list) {
        Integer integer = assetMapper.batchInsertAsset(list);
        return integer > 0;
    }

    @Override
    public List<Asset> getUnassignedList() {
        return assetMapper.getUnassignedList();
    }
}
